import { translateTitle } from '@/utils/i18n'
const MessageId = {
  MessageId: {
    search: {
      form: {
        method: 'ApimMessageIdQuery',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'MESSAGE_ID',
            label: translateTitle('Dams.APIMinterfaceManagement.接口编号'),
            labelHidden: false,
          },
          {
            type: 'button',
            label: translateTitle('Dams.APIMinterfaceManagement.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'checkbox',
            name: 'ID',
            label: '',
            hidden: true,
          },
          {
            type: 'input',
            name: 'MESSAGE_ID',
            label: translateTitle('Dams.APIMinterfaceManagement.接口编号'),
            labelHidden: false,
            disabled_edit: true,
            isRules: true,
          },
          {
            type: 'input',
            name: 'MESSAGE_DESC',
            label: translateTitle('Dams.APIMinterfaceManagement.接口描述'),
            labelHidden: false,
            isRules: true,
          },
          {
            type: 'select',
            name: 'ACTIVE_FLAG',
            label: translateTitle('Dams.APIMinterfaceManagement.激活标志'),
            labelHidden: false,
            isRules: true,
            options: [
              {
                LABEL: translateTitle('Dams.APIMinterfaceManagement.是'),
                CODE: 'Y',
              },
              {
                LABEL: translateTitle('Dams.APIMinterfaceManagement.否'),
                CODE: 'N',
              },
            ],
          },
          {
            type: 'input',
            name: 'ADD_TIME',
            label: translateTitle('Dams.APIMinterfaceManagement.创建时间'),
            hidden: true,
          },
          {
            type: 'input',
            name: 'ADD_WHO',
            label: translateTitle('Dams.APIMinterfaceManagement.创建人'),
            hidden: true,
          },
          {
            type: 'input',
            name: 'EDIT_TIME',
            label: translateTitle('Dams.APIMinterfaceManagement.编辑时间'),
            hidden: true,
          },
          {
            type: 'input',
            name: 'EDIT_WHO',
            label: translateTitle('Dams.APIMinterfaceManagement.编辑人'),
            hidden: true,
          },
          {
            type: 'button',
            label: translateTitle('Dams.APIMinterfaceManagement.提交'),
            labelHidden: true,
            isRules: true,
          },
        ],
      },
    },
    deleteMethod: 'ApimMessageIdRemove',
    updateMethod: 'ApimMessageIdUpdate',
    addMethod: 'ApimMessageIdSava',
    downloadMethod: 'apim.message.id.export',
  },
}
export default MessageId
